<?php
/* Smarty version 3.1.30, created on 2017-10-28 12:16:10
  from "C:\ComsenzEXP\wwwroot\Moodblog\admin\html\artkind.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_59f4750a037ab3_06535845',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '20ad3e0d0c7f6485a6af217e8b82f0a752eb9c32' => 
    array (
      0 => 'C:\\ComsenzEXP\\wwwroot\\Moodblog\\admin\\html\\artkind.html',
      1 => 1509191050,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_59f4750a037ab3_06535845 (Smarty_Internal_Template $_smarty_tpl) {
?>
<head>
	<link rel="stylesheet" type="text/css" href="./html/common.css" />
</head>
<div class="content">
	<div class = "setTitle">
		分类管理 
		<div class="smallinput">
			<form action="trans.php?action=addartkind" method="POST">
				<input name="artkindname" type="text" placeholder="分类名称"/> <input type="submit" value="添加分类"/>
			</form>
		</div>
	</div>
	<form action="trans.php?action=updateartkind" method="POST">
		<table class="setTable">
			<tbody>
				<tr>
					<th>ID</th>
					<th>分类名称</th>
					<th>博文数目</th>
					<th>管理</th>
				</tr>
				
					<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['artkind']->value, 'value');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
?>
					<tr>
						<td><?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
</td>
						<td><input name="<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
" type="text" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['name'];?>
"></td>
						<td><?php echo $_smarty_tpl->tpl_vars['value']->value['num'];?>
</td>
						<td><a href="trans.php?action=deleteartkind&id=<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
">删除</a></td>
					</tr>
					<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

			</tbody>
		</table>
		<div class="adminSub">
			<input type="submit" value="提交"/>
		</div>
	</form>
</div>
<?php }
}
